const pool = require("../connection/sqlPool");

async function GETPUBLISH(username) {
    try{
        const promisePool = pool.promise();
    
        const [rows, fields] = await promisePool.query("SELECT * FROM My_publish WHERE username = ?", [username]);
        return rows;
    }catch(err){
        return err.message
    }

}

module.exports = { GETPUBLISH }; 